﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>单文件上传示例</title>
    <link href="js/up2.css" type="text/css" rel="Stylesheet"/>
    <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="js/json2.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/up2.app.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/up2.edge.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/up2-single.js" type="text/javascript" charset="utf-8"></script>
    <script language="javascript" type="text/javascript">
        var fileMgr = new HttpUploaderMgr();

        fileMgr.event.postComplete = function (obj) { };
        fileMgr.event.postError = function (obj) { };
        fileMgr.event.postProcess = function (obj, speed, postedLength, percent, times) { };

        $(function ()
        {
            fileMgr.loadAuto();

            //上传用户选择的文件
            $("#btnSel").click(function ()
            {
                fileMgr.postAuto("upPnl"); //
            });

            //上传指定路径中的文件
            $("#btnPostLoc").click(function ()
            {
                fileMgr.postLoc("D:\\360safe-inst.exe", "upPnl"); //
            });
        });
    </script>
</head>
<body>
    <p>此页面演示单个文件上传样式</p>
    <div id="upPnl"></div>
    <input id="btnSel" type="button" value="浏览" />
    <input id="btnPostLoc" type="button" value="上传本地文件" />
</body>
</html>